AC_INIT([hal-sharp], [0.0.2])
AC_CANONICAL_SYSTEM
AC_PREREQ(2.13)
AM_INIT_AUTOMAKE([1.9 dist-bzip2 tar-ustar])
AM_MAINTAINER_MODE

dnl Library Checks
NDESK_DBUS_REQUIRED=0.6.0

ASM_VERSION="1.0.0.0"
AC_SUBST(ASM_VERSION)

AC_PROG_INSTALL

SHAMROCK_CHECK_MONO_MODULE(1.1.10)
SHAMROCK_FIND_MONO_2_0_COMPILER
SHAMROCK_FIND_MONO_RUNTIME
SHAMROCK_CHECK_MONO_2_0_GAC_ASSEMBLIES([
	System
])

# Check for Dbus
PKG_CHECK_MODULES(NDESK_DBUS, [ ndesk-dbus-1.0 >= $NDESK_DBUS_REQUIRED ])
AC_SUBST(NDESK_DBUS_CFLAGS)
AC_SUBST(NDESK_DBUS_LIBS)

AC_PATH_PROG(GACUTIL, gacutil, no)
if test "x$GACUTIL" = "xno"; then
	AC_MSG_ERROR([You need to install gacutil])
fi

AC_OUTPUT([
	Makefile
	hal-sharp.pc
	src/Makefile
])
